#!/usr/bin/env python
#coding:utf-8

'''
Created on Oct 6, 2012

@author: killua
'''

from pyictclas import PyICTCLAS, CodeType, POSMap

if __name__ == '__main__':
    ictclas = PyICTCLAS()
    ictclas.ictclas_init()
    text = u"计算所汉语词法分析系统ICTCLAS调用测试"
    
    ictclas.ictclas_setPOSmap(POSMap.PKU_POS_MAP_FIRST)
    result = ictclas.ictclas_paragraphProcess(text, CodeType.CODE_TYPE_UTF8)
    print result.value
    
    #print ictclas.ictclas_getWordId('我', CodeType.CODE_TYPE_UTF8)
    
    #result2 =ictclas.ictclas_fileProcess(r'/home/killua/Desktop/temp', CodeType.CODE_TYPE_UTF8, r'/home/killua/Desktop/temp_ictclas')
    #print result2.value
    
    ictclas.ictclas_exit()